﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NET.Common
{
    [TestClass]
    public class Main
    {
        [TestMethod]
        public void StringBuilderTest()
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("abc");
            sb.AppendLine("def");
            sb.AppendFormat("12{0}345", "666");
            Console.WriteLine(sb.ToString());
        }


        [TestMethod]
        public void DictionaryTest()
        {
            Dictionary<string, int> dic = new Dictionary<string, int>();
            dic.Add("1H", 1);
            dic.Add("2H", 2);
            dic.Add("3H", 3);
            dic.Add("4H", 4);
            dic.Add("5H", 5);

            Console.WriteLine($"result:{dic["3H"]}");
        }
    }
}
